<?php
  $connection=mysql_connect("127.0.0.1","avtovokzal","pipzemkam") or die("Ошибка соединения с сервером");
  $db=mysql_select_db("avtovokzal",$connection) or die("Ошибка при выборе базы данных");
  @mysql_query('set character_set_client="utf8"');
  @mysql_query('set character_set_results="utf8"');
  @mysql_query('set collation_connection="utf8_general_ci"');
  $row=mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM `messages`"));
  if ($row[0]>0) {
    $row=mysql_fetch_array(mysql_query("SELECT * FROM `messages` WHERE `id`='1'"),MYSQL_ASSOC);
		echo '<div style="border-bottom: 1px solid black; color: #aa0000; height: 1.6em; text-align: center; font-size: 1.2em"><b>'.$row["title"].'</b></div>';
    echo '<div style="text-align: center; padding: 0.7em 1em 0 1em; font-size: 1.2em">'.$row["text"].'</div>';
	}
	mysql_close($connection);
?>